<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div class="bigger">
        <div class="small small1"></div>
        <div class="small small2"></div>
        <div class="small small3"></div>
        <div class="small small4"></div>
    </div>
</body>
<style>
    *{
        margin: 0;
        padding: 0;
    }
    .bigger{
        display: flex;
        height: 100vh;
        width: 48px;
        
        background-color: #F0F;
        flex-direction:column;
        /* transform: rotate(90deg); */

    }

    .small{
        width: 40px;
        margin-bottom: 20px;
        height: 40px;
        min-height: 40px;
        background-color: aqua;
        border: 4px black solid;        
    }

    .small3{
        /* margin-left: auto; */
        margin-top: auto;
    }

    .small ~ .small{
        margin-bottom: 1px;
    }

    
</style>
</html>